const express = require('express')
const app = express()
app.use(express.static('clocl'))
//监听get和post请求并响应
app.get('/user',(req,res)=>{
    res.send({name:'zss'})
})
app.post('/user',(req,res)=>{
    res.send('请求成功')
})
app.listen(80,()=>{
    console.log('server running at http://127.0.0.1')
    
})
